package com.eddie.sort;

import java.util.Arrays;

/**
 * @author Eddie
 * @date 2022/08/11 17:06
 **/
public class ArraySortTest {
    public static void main(String[] args) {
        int[] arr = new int[8000000];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random() * 8000000);
        }
        long start1 = System.currentTimeMillis();
        Arrays.sort(arr);
        long end1 = System.currentTimeMillis();
        System.out.printf("花费时间是：%d毫秒", end1 - start1);
    }
}
